<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ReportProcessLogs extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'report_id' => 'required|integer',
            'status' => 'required|integer',
            'contents' => 'required|string',
            'house_type' => 'required|integer',
        ];
    }
    public function messages()
    {
        return [
          'report_id.required'=>  '报备id为必填项',
          'status.required'  =>  '跟进记录当前状态为必填项',
          'contents.required'  =>  '跟进记录为必填项',
          'house_type.required'  =>  '房源类型为必填项',
        ];

    }

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }
}
